




//
//  MBFirstSectionHeadView.m
//  房源详情-小区详情
//
//  Created by MB__Lee on 2018/5/28.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBFirstSectionHeadView.h"

@interface MBFirstSectionHeadView()
@property (weak, nonatomic) IBOutlet UILabel *sectionTitleLabel;

@property (weak, nonatomic) IBOutlet UIButton *sectionBTN;

@end

static NSString *MBFirstSectionHeadView_Identi = @"MBFirstSectionHeadView";
@implementation MBFirstSectionHeadView

+(instancetype)MBFirstSectionViewCreat{
    
    MBFirstSectionHeadView *first  = [[NSBundle mainBundle] loadNibNamed:MBFirstSectionHeadView_Identi owner:nil options:nil].lastObject;
    first.frame = CGRectMake(0, 0, SCREEN_WIDTH, 40);
    return  first;
}

-(void)setTitle:(NSString *)title{
    self.sectionTitleLabel.text = title;
  
}
-(void)setBtnName:(NSString *)btnName{
    [self.sectionBTN setTitle:btnName forState:UIControlStateNormal];
}

- (IBAction)MoreSource:(id)sender {
    if (_sectionBlock) {
        _sectionBlock();
    }
    
    
}


@end
